package configs.context;
import com.ceba.test.modules.admin.logicService.AdminLogicService;
import com.ceba.test.modules.cnca.CncaLogicService;
import com.ceba.test.modules.email.logicService.EmailLogicService;
import com.ceba.test.modules.filemanage.logicService.FileManageLogicService;
import com.ceba.test.modules.invalid.logicService.InvalidLogicService;
import com.ceba.test.modules.log.logicService.LogLogicService;
import com.ceba.test.modules.regist.logicService.NewRegistLogicService;
import com.ceba.test.modules.regist.logicService.RegistLogicService;
import com.ceba.test.modules.sign.logicService.SignLogicService;
import com.ceba.test.modules.signvisual.logicService.SignVisualLogicService;
import com.ceba.test.modules.signvisual.logicService.custom.CustomStampSignLogicService;
import com.ceba.test.modules.signvisual.logicService.custom.CustomStampSignVisualLogicService;
import com.ceba.test.modules.statistic.logicService.StatisticLogicService;
import com.ceba.test.modules.storage.logicService.GStorageAddressLogicService;
import com.ceba.test.modules.usermanage.logicService.UserManageLogicService;

public class SpringBeans {
	
	
	/**
	 * logicService 的实例化
	 * @param adminLogicService
	 * @return
	 */
	public static AdminLogicService getAdminLogicService(String adminLogicService) {
		return (AdminLogicService)SpringContextHolder.getBean(adminLogicService);
	}
	
	
	public static FileManageLogicService getFileManageLogicService(String fileManageLogicService) {
		return (FileManageLogicService)SpringContextHolder.getBean(fileManageLogicService);
	}
	
	public static UserManageLogicService getUserManageLogicService(String userManageLogicService) {
		return (UserManageLogicService)SpringContextHolder.getBean(userManageLogicService);
	}
	
	public static EmailLogicService getEmailLogicService(String emailLogicService) {
		return (EmailLogicService)SpringContextHolder.getBean(emailLogicService);
	}
	
	
	public static SignLogicService getSignLogicService(String signLogicService) {
		return (SignLogicService)SpringContextHolder.getBean(signLogicService);
	}
	
	public static InvalidLogicService getInvalidLogicService(String invalidLogicService) {
		return (InvalidLogicService)SpringContextHolder.getBean(invalidLogicService);
	}
	
	public static LogLogicService getLogLogicService(String logLogicService) {
		return (LogLogicService)SpringContextHolder.getBean(logLogicService);
	}
	
	
	public static StatisticLogicService getStatisticLogicService(String statisticLogicService) {
		return (StatisticLogicService)SpringContextHolder.getBean(statisticLogicService);
	}
	
	
	
	public static RegistLogicService getRegistLogicService(String registLogicService) {
		return (RegistLogicService)SpringContextHolder.getBean(registLogicService);
	}
	public static SignVisualLogicService getSignVisualLogicService(String signVisualLogicService) {
		return (SignVisualLogicService)SpringContextHolder.getBean(signVisualLogicService);
	}


	public static CustomStampSignLogicService getCustomStampSignLogicService(String customStampSignLogicService) {
		return (CustomStampSignLogicService)SpringContextHolder.getBean(customStampSignLogicService);
	}


	public static CustomStampSignVisualLogicService getCustomStampSignVisualLogicService(String customStampSignVisualLogicService) {
		return (CustomStampSignVisualLogicService)SpringContextHolder.getBean(customStampSignVisualLogicService);
	}

	public static GStorageAddressLogicService getGStorageAddressLogicService(String string) {
		return (GStorageAddressLogicService) SpringContextHolder.getBean(string);
	}

	public static NewRegistLogicService newNewRegistLogicService(String string) {
		return (NewRegistLogicService) SpringContextHolder.getBean(string);
	}

	public static CncaLogicService getCncaLogicService(String string) {
		return (CncaLogicService) SpringContextHolder.getBean(string);
	}
}